import {defineStore} from "pinia"

/**
 * 设置的pinia
 */
export const useSettings = defineStore("Settings", {
  state() {
    return {
      /**
       * 时间颜色
       */
      timercolor: localStorage.getItem("timercolor") ?? "#000000",
      /**
       * 描述颜色
       */
      describecolor: localStorage.getItem("describecolor") ?? "#000000",
      /**
       * 图标颜色
       */
      iconcolor: localStorage.getItem("iconcolor") ?? "#000000",
      /**
       * 自定义描述
       */
      customdescription: localStorage.getItem("customdescription") ?? "default",
      /**
       * 自定义描述内容
       */
      customtext: localStorage.getItem("customtext") ?? "未说明定义描述",
      /**
       * 倒计时时间
       */
      countdown:localStorage.getItem("countdown") ?? "02",
    }
  }
})
